from pysoftsaurus.quotes.models import Quote
from django.contrib import admin

class QuoteAdmin(admin.ModelAdmin):
     search_fields = ['author']
     date_hierarchy = 'pub_date'
     fieldsets = [
	(None,			{'fields': ['author']}),
	('Date information',	{'fields': ['pub_date'], 'classes': ['collapse']}),
	(None,			{'fields': ['summary']}),
        (None,			{'fields': ['content']}), 
     ]
     list_display = ('author', 'pub_date', 'was_published_today')
     list_filter = ['pub_date']

admin.site.register(Quote, QuoteAdmin)
